package org.csu.demo.service;

import org.csu.demo.common.CommonResponse;
import org.csu.demo.domain.Category;
import org.csu.demo.domain.DescVo;
import org.csu.demo.domain.Item;
import org.csu.demo.domain.Product;

import java.util.List;

public interface CatalogService {
    CommonResponse<List<Category>> findAllCategories();
    CommonResponse<Category> findCategoryById(String id);
    CommonResponse<List<Product>> findProductsByCategory(String id);
    CommonResponse<List<Product>> findAllProducts();
    CommonResponse<Product> findProductById(String id);
    CommonResponse<List<Item>> findItemsByProductId(String id);
    CommonResponse<Item> findItemById(String id);
    CommonResponse<List<Item>> findAllItems();
    CommonResponse<List<Product>> searchProducts(String keyword);
    CommonResponse<DescVo> getDescByItemId(String itemId);
}
